// JavaScript Document

function cambiarPassword()
{
	var contEtiquetas = document.getElementById('etiPwd');
	var contCampos = document.getElementById('miPwdContainer');
	var miPass = document.getElementById('miPwd');
	var newPass = document.getElementById('newPwd');
	var repPass = document.getElementById('repPwd');
	var bCambiar = document.getElementById('btnCamPwd');
	var etiRep = document.getElementById('ErepPwd');
	
	if(contEtiquetas.style.visibility == 'hidden')
	{
		contEtiquetas.style.visibility='visible';
		contCampos.style.visibility = 'visible';
		contEtiquetas.style.textAlign = 'right';
		contCampos.style.textAlign = 'left';
		
		miPass.value = '';
		repPass.value = '';
		repPass.disabled = false;
		bCambiar.value = 'Guardar';
		etiRep = replaceHtml(etiRep,"Repetir Contrase&ntilde;a:");
		miPass.focus();
	}
		else
		{
			contEtiquetas.style.visibility='hidden';
			contCampos.style.visibility = 'hidden';
			contEtiquetas.style.textAlign = 'right';
			contCampos.style.textAlign = 'left';
			
			miPass.value = '';
			repPass.value = '1234567890';
			repPass.disabled = true;
			bCambiar.value = 'Cambiar';
			etiRep = replaceHtml(etiRep,"Mi Contrase&ntilde;a:");
		}
}

function cambiarCorreo()
{
	var mC = document.getElementById('miC');
	var bC = document.getElementById('btnCorreo');
	
	if(bC.value=='Cambiar')
	{
		mC.disabled = false;
		mC.value = '';
		mC.focus();
		bC.value = 'Guardar';
	}
		else
		{
			mC.disabled = true;
			mC.value = 'arqsys.contacto@gmail.com';
			bC.value = 'Cambiar';
		}
}